package com.xsq.newmall01.Mapper;

import com.xsq.newmall01.Dao.Good;
import com.xsq.newmall01.Dao.Order;
import com.xsq.newmall01.Dao.Ownership;
import com.xsq.newmall01.Dao.User;

import java.util.List;

public interface UserMapper {
    User isuserexist(User user);
    void insertuser(User user);
    void updateuser(User user);
    List<Good> selectallgoods();
    List<Order> selectownedorder(User user);
    void insertorder(Order order);
    void updateownership(Ownership ownership);
    List<Good> selectownedgoods(User user);
    boolean checkUsernameExists(String username);
    int selectSellerIdByGoodId(int goodid);
    List<Good> selectAllGoodsWithMerchantInfo();
}
